Google Glass Programming in PHP by Tony Gaitatzis
Author:Tony Gaitatzis [Gaitatzis, Tony]
Language: eng
Format: azw3
Published: 2014-01-21T05:00:00+00:00
When that happens you will get a row in your HttpPost table containing this content: {
"collection": "timeline",
"itemId": "cc4bf15e-370d-4ebf-a2f3-1f1282623029", "operation": "UPDATE",
"userToken": "whoami",
"userActions": [
{
"type": "CUSTOM",
"payload": "like"
}
]
} // we will never see this page in person, // so let's save it to
// the database so we can check on it later $query = "insert into `HttpPost` ".
"( `url`, `headers`, `post` ) ". " values ".
"('".$url."','".addslashes($header).",'".addslashes($pos tString)."')";
$mysqli->query($query);
It is important to note here that PHP’s $_POST variable doesn’t process the incoming JSON. As a result, $_POST is empty even though Google Mirror has posted content to your timeline_callback.php script. To access the JSON, you must use the $HTTP_RAW_POST_DATA to access this JSON string.
Once this process is complete, you may choose to respond by posting content to their Glass Timeline or some other action.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25283)
Hello! Python by Anthony Briggs(24336)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23429)
Kotlin in Action by Dmitry Jemerov(22507)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21969)
Dependency Injection in .NET by Mark Seemann(21838)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20707)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19521)
Grails in Action by Glen Smith Peter Ledbrook(18604)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17031)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15843)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13690)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11851)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11151)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10621)
Hit Refresh by Satya Nadella(9194)
The Kubernetes Operator Framework Book by Michael Dame(8567)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8400)
Robo-Advisor with Python by Aki Ranin(8360)